/**
 * My first C Kernel
 */
#include "multiboot.h"

unsigned char *videomem = (unsigned char *)0xB8000;


void kernel_main(unsigned long magic, multiboot_info_t *mbinfo)
{
	int i,p;
	char *msg = "XUPA FEDERAL!!!";

	for(i=0; i<(80*25*2); i+=2) {
		videomem[i]   = ' ';
		videomem[i+1] = 0x00;
	}

	for(i=0,p=0; i<15; i++, p+=2) {
		videomem[p]   = msg[i];
		videomem[p+1] = 0x0E;
	}

	for(;;);
}
